package com.dyh.pojo;

import java.util.Date;

public class Comment {

    private int id;

    /*
    * 评论id所属的文章
    * */
    private int blogId;

    /*
    * 评论人
    * */
    private int userId;

    /*
    * 评论的内容
    * */
    private String content;

    /*
    * 评论创建时间
    * */
    private Date createTime;

    /*
    * 评论父id(是否是回复别人的)
    * */
    private int userIdParent;

    public Comment(int id, int blogId, int userId, String content, Date createTime, int userIdParent) {
        this.id = id;
        this.blogId = blogId;
        this.userId = userId;
        this.content = content;
        this.createTime = createTime;
        this.userIdParent = userIdParent;
    }

    public Comment() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getUserIdParent() {
        return userIdParent;
    }

    public void setUserIdParent(int userIdParent) {
        this.userIdParent = userIdParent;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", blogId=" + blogId +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", userIdParent=" + userIdParent +
                '}';
    }
}
